/**
 * 订单信息服务 - api接口
 */
import request from '@/utils/request'

export function getListOrder(params) {
  return request({
    url: '/syOrder/',
    method: 'get',
    params
  })
}

export function getDetailListOrder(params) {
  return request({
    url: '/syOrderDetail/',
    method: 'get',
    params
  })
}

export function getAddress(params) {
  return request({
    url: '/syAddressesConfig/' + params.addressId,
    method: 'get',
    params
  })
}

export function getOrder(params) {
  return request({
    url: '/syOrder/' + params.productId,
    method: 'get',
    params
  })
}

export function getPageOrder(params) {
  return request({
    url: '/syOrder/page',
    method: 'get',
    params
  })
}

export function updateOrder(params) {
  return request({
    url: '/syOrder/update',
    method: 'post',
    params
  })
}

export function sendOrder(params) {
  return request({
    url: '/syOrder/sendOrder',
    method: 'post',
    params
  })
}

export function createOrder(params) {
  return request({
    url: '/syOrder/insert',
    method: 'post',
    params
  })
}

export function deleteOrder(params) {
  return request({
    url: '/syOrder/delete',
    method: 'post',
    params
  })
}
